/*
 * @Author: nns4
 * @Date: 2021-01-13 13:31:20
 * @LastEditors: nns4
 * @FilePath: /studyNote/node/fs/unlink.js
 * @Description: 异步删除
 */
const { unlink } = require('fs');
const { log } = console;

unlink('index.js', (err) => {
  if (err) throw err;
  log('文件已删除');
});
